#include <memory> // smart_ptr
#include "TcpServer.hpp"
#include "CommandRun.hpp"

using namespace LogModule;

int main()
{
    LOG_CONSOLE;
    Command cmd;

    std::unique_ptr<TcpServer> tsvr = std::make_unique<TcpServer>([&cmd](std::string strCmd){
        return cmd.Execute(strCmd);
    });

    tsvr->InitServer();
    tsvr->Start();

    return 0;
}